#pragma once

#include "pch.h"

inline void InitWindow				() {
	if (SDL_Init(SDL_INIT_VIDEO) < 0) {
		std::cout << "Unable to init SDL, error: " << SDL_GetError() << std::endl;
		exit						(1);
	}

	SDL_GL_SetAttribute				(SDL_GL_DOUBLEBUFFER, 1);

	g_window						= SDL_CreateWindow("fhEngine", SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, BASE_WIDTH, BASE_HEIGHT, SDL_WINDOW_SHOWN | SDL_WINDOW_OPENGL);

	SDL_GLContext glcontext			= SDL_GL_CreateContext(g_window);

	verify							(g_window);
}

